Account: xyz-peter.smith from 9310:
Create Account and User Subject From Given Subject Uuid and
Name| name | value |
|---|---|
| subjectName | xyz-peter.smith |
| name | value |
|---|---|
| expectedMembershipsJson | [ { “partner”: { “partnerNumber”: “P-10002”, “partnerRel”: { “type”: “PARTNER”, “anchor”: { “tradeName”: “Hostsharing eG” }, “holder”: { “tradeName”: “Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@secondcontact.example.com” } } }, “details”: { “registrationOffice”: “Hamburg”, “registrationNumber”: “RegNo123456789” } }, “memberNumber”: “M-1000202”, “memberNumberSuffix”: “02”, “validFrom”: “2022-10-01”, “validTo”: “2025-12-31”, “status”: “CANCELLED”, “membershipFeeBillable”: true } ] |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"person" : {
"uuid" : "367ffe5b-259a-465e-924d-8c71af07db0c", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"subject" : {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"name" : "xyz-peter.smith",
"organization" : "xyz",
"type" : "USER"
},
"globalUid" : 21011,
"globalGid" : 21011
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/relations?relationType=REPRESENTATIVE&personUuid=367ffe5b-259a-465e-924d-8c71af07db0c" // personUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "c1998009-193a-49ac-bc59-84388fe396b4",
"anchor" : {
"uuid" : "ce7a2acb-db99-43f9-8a7e-0129a39c5138",
"personType" : "LEGAL_PERSON",
"tradeName" : "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.",
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"holder" : {
"uuid" : "367ffe5b-259a-465e-924d-8c71af07db0c", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "REPRESENTATIVE",
"mark" : null,
"contact" : {
"uuid" : "0124ef1a-74af-499b-a0f0-660c89687738",
"caption" : "second contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@secondcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
} ]
HTTP GET "/api/hs/office/partners?name=Peter+Smith+-+The+Second+Hand+and+Thrift+Stores-n-Shipping+e.K." \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "b331c6cf-b342-4889-a41c-625cb730445b",
"partnerNumber" : "P-10002",
"partnerRel" : {
"uuid" : "12f3a7bd-5bc4-489b-8b8d-d064d93922a5",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb",
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ce7a2acb-db99-43f9-8a7e-0129a39c5138",
"personType" : "LEGAL_PERSON",
"tradeName" : "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.",
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "0124ef1a-74af-499b-a0f0-660c89687738",
"caption" : "second contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@secondcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
},
"details" : {
"uuid" : "a6f235a1-36c0-4e92-8a9e-5525f45c8afc",
"registrationOffice" : "Hamburg",
"registrationNumber" : "RegNo123456789",
"birthName" : null,
"birthPlace" : null,
"birthday" : null,
"dateOfDeath" : null
}
} ]
HTTP GET "/api/hs/office/memberships?partnerUuid=b331c6cf-b342-4889-a41c-625cb730445b" // partnerUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "bdcd792f-bd44-4a30-80dd-3b9adb5b0edd",
"partner" : {
"uuid" : "b331c6cf-b342-4889-a41c-625cb730445b", // partnerUuid
"partnerNumber" : "P-10002",
"partnerRel" : {
"uuid" : "12f3a7bd-5bc4-489b-8b8d-d064d93922a5",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb",
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ce7a2acb-db99-43f9-8a7e-0129a39c5138",
"personType" : "LEGAL_PERSON",
"tradeName" : "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.",
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "0124ef1a-74af-499b-a0f0-660c89687738",
"caption" : "second contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@secondcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
},
"details" : {
"uuid" : "a6f235a1-36c0-4e92-8a9e-5525f45c8afc",
"registrationOffice" : "Hamburg",
"registrationNumber" : "RegNo123456789",
"birthName" : null,
"birthPlace" : null,
"birthday" : null,
"dateOfDeath" : null
}
},
"mainDebitor" : null,
"memberNumber" : "M-1000202",
"memberNumberSuffix" : "02",
"validFrom" : "2022-10-01",
"validTo" : "2025-12-31",
"status" : "CANCELLED",
"membershipFeeBillable" : true
} ]
generated on 2026-08-10 04:42:19 for branch HEAD